//
//  TopNewVO.m
//  ZhihunewPaper
//
//  Created by 梅杰 on 16/7/22.
//  Copyright © 2016年 梅杰. All rights reserved.
//

#import "TopNewVO.h"

@implementation TopNewVO

+ (NSArray *)topNewsArray :(NSDictionary *)newsDict{
    NSMutableArray *newsArray = [NSMutableArray arrayWithCapacity:0];
    
    static NSString *recent = @"top_stories";
    NSArray *newsModelArray = [newsDict objectForKey:recent];
    
    for (NSDictionary *aNewDict in newsModelArray) {
        NSError *error;
     
        TopNew *aNew = [[TopNew alloc] initWithDictionary:aNewDict error:&error];
//        NSLog(@"%@",[error localizedDescription]);
        [newsArray addObject:aNew];
    }
    return newsArray;
}


@end
